package liangtWorkSpace.springAll.times.impl;

import liangtWorkSpace.springAll.times.bean.Beans;

/**
 * @author liangt
 * @ClassName: HelloWorldImpl
 * @title: HelloWorldImpl
 * @projectName liangtWorkSpace.springAll.times.impl
 * @description: TODO
 * @date 2020/10/15 16:33
 */
public class HelloWorldImpl implements Beans {

    private String message;

    //创建时调用
    public void afterPropertiesSet() throws Exception {
        System.out.println("Bean创建HelloWorldImpl时调用");
    }
    //销毁时调用
    public void destroy() throws Exception {
        System.out.println("演示Bean销毁HelloWorldImpl时调用");
    }

    @Override
    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public void getMessage() {
        System.out.println("Hellp : "+message);
    }
}
